home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / gnu / amiga / make-367.lha / make-3.67 / build.sh next >
Text File  |  1993-05-24  |  2KB  |  69 lines

  1. # Generated automatically from build.sh.in by configure.
  2. #!/bin/sh
  3.  
  4. # Shell script to build GNU Make in the absence of any `make' program.
  5.  
  6. # Copyright (C) 1993 Free Software Foundation, Inc.
  7. # This file is part of GNU Make.
  8. #
  9. # GNU Make is free software; you can redistribute it and/or modify
  10. # it under the terms of the GNU General Public License as published by
  11. # the Free Software Foundation; either version 2, or (at your option)
  12. # any later version.
  13. #
  14. # GNU Make is distributed in the hope that it will be useful,
  15. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  16. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.    See the
  17. # GNU General Public License for more details.
  18. #
  19. # You should have received a copy of the GNU General Public License
  20. # along with GNU Make; see the file COPYING.  If not, write to
  21. # the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
  22.  
  23. # See Makefile.in for comments describing these variables.
  24.  
  25. srcdir='.'
  26. CC='gcc'
  27. CFLAGS='-O'
  28. LDFLAGS=''
  29. defines='-DHAVE_CONFIG_H'
  30. ALLOCA=''
  31. LOADLIBES=''
  32. extras=' getloadavg.o'
  33. REMOTE='stub'
  34.  
  35. # Common prefix for machine-independent installed files.
  36. prefix=/usr/local
  37. # Common prefix for machine-dependent installed files.
  38. exec_prefix=/usr/local
  39. # Directory to find libraries in for `-lXXX'.
  40. libdir=${exec_prefix}/lib
  41. # Directory to search by default for included makefiles.
  42. includedir=${prefix}/include
  43.  
  44. # Exit as soon as any command fails.
  45. set -e
  46.  
  47. # These are all the objects we need to link together.
  48. objs="commands.o job.o dir.o file.o misc.o main.o read.o remake.o rule.o implicit.o default.o variable.o expand.o function.o vpath.o version.o ar.o arscan.o signame.o getopt.o getopt1.o glob/glob.o glob/fnmatch.o remote-${REMOTE}.o ${extras} ${ALLOCA}"
  49.  
  50. # Compile the source files into those objects.
  51. for file in `echo ${objs} | sed 's/\.o/.c/g'`; do
  52.   echo compiling ${file}...
  53.   $CC $CFLAGS $defines -c -I. -I${srcdir} -I${srcdir}/glob ${srcdir}/$file
  54. done
  55.  
  56. # The object files were actually all put in the current directory.
  57. # Remove the source directory names from the list.
  58. srcobjs="$objs"
  59. objs=
  60. for obj in $srcobjs; do
  61.   objs="$objs `basename $obj`"
  62. done
  63.  
  64. # Link all the objects together.
  65. echo linking make...
  66. $CC $LDFLAGS $objs $LOADLIBES -o make.new
  67. echo done
  68. mv -f make.new make
  69.